The base class returns the default compiler based on the application configuration file 基類根據應用程序配置文件返回默認編譯器。
Then the thesis presents two peephole optimizations for the c 、 c + + compiler based on the architecture of thump to improve the quality of generated codes . one optimization is on multimedia applications . since thump supports two mmx instructions , the optimized compiler can generate these instructions to improve the performance 論文討論了如何利用thump體系結構的特點進一步提高目標代碼生成質量的優化技術,并實現了兩種窺孔優化,包括針對thump的多媒體指令的優化算法和基于thump的高速乘除處理部件的優化算法。
Firstly the thesis introduces the frame and design of the c 、 c + + compiler , and discusses the implementation of the compiler based on gcc , which is a retargetable compiler . the implementation considers the architecture of thump , including the delay slots , the instruction interlock , macro expansion , and libraries for soft - float . and addresses the process developing the cross compiler and native compiler for thump 論文介紹了thump的c 、 c + +編譯器的總體結構以及設計方案,并詳細闡述了利用可重定向編譯器gcc實現thump的c 、 c + +編譯器的方法和過程,包括延遲槽修改、指令互鎖的實現、宏指令展開以及軟件浮點庫的生成等,并實現了thump的交叉編譯器和本地編譯器。